import request from '@/utils/request'

export function getDistributionList(params) {
  return request({
    url: '/distribution/list',
    method: 'get',
    params
  })
}

export function getDistributionData(params) {  // 根据Id获取布点信息数据接口
  return request({
    url: '/distribution',
    method: 'get',
    params
  })
}

export function createDistribution(params) {
  return request({
    url: '/distribution/insert',
    method: 'post',
    data: params
  })
}

export function updateDistribution(params) {
  return request({
    url: '/distribution/update',
    method: 'post',
    data: params
  })
}

export function deleteDistribution(params) {
  return request({
    url: '/distribution/delete',
    method: 'post',
    data: params
  })
}
